wayland: Stop using surface->children
authorMatthias Clasen <mclasen@redhat.com>
Sat, 23 Mar 2019 13:28:11 +0000 (09:28 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 28 May 2019 20:25:13 +0000 (20:25 +0000)
It is always NULL.

gdk/wayland/gdkdevice-wayland.c

index 646f37057bbc5ea5b89d595a3a58d74ca3f019cf..36ed322d401791df175bfc74f74f4718ae8fff06 100644 (file)
@@ -591,12 +591,10 @@ gdk_wayland_device_query_state (GdkDevice        *device,
                                 GdkModifierType  *mask)
 {
   GdkWaylandPointerData *pointer;
-  GList *children;
+  GList *children = NULL;
 
   if (surface == NULL)
     children = gdk_wayland_display_get_toplevel_surfaces (gdk_device_get_display (device));
-  else
-    children = surface->children;
 
   pointer = GDK_WAYLAND_DEVICE (device)->pointer;